const KoaRouter = require("@koa/router");
const LoginController = require("../controller/login.controller");
const { verifyLoginParams, verifyAuthorization } = require("../middleware/login.middleware");

const loginRouter = new KoaRouter({ prefix: "/login" });

loginRouter.post("/", verifyLoginParams, LoginController.sign);
loginRouter.get("/test", verifyAuthorization, LoginController.test);

module.exports = loginRouter;
